package com.aaa.demo08;

/**
 * @author ${崔灿}
 * @date 2022/11/01 16:36
 **/

public class Boy extends Thread{
    private BankCard bankCard;
    public Boy(BankCard bankCard){
        this.bankCard = bankCard;
    }

    @Override
    public void run() {
        for (int i = 0; i < 10 ;i++) {
            bankCard.save(1000);
}
    }
}
